/* Copyright (c) 2024 Huawei Technologies Co., Ltd.
openFuyao is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
         http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN 'AS IS' BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
@import './styles/common.less';

* {
  box-sizing: border-box;
}


body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  height: 100vh;
  p {
    margin: 0;
  }
}

.content {
  background: #f7f7f7;
}

/**
子路由容器样式
**/
.child_content {
  overflow-y: auto;
  padding: 28px 32px 32px 32px;
}

.multi-cluster-website_root {
  .child_content {
    background: @page-background-color;
    overflow-y: auto;
  }
}

/** 页面布局样式**/
.page_header {
  padding: 16px 0 16px 32px;
  background: @page-container-color;
  box-shadow: inset 0px -1px 0px rgba(229, 229, 229, 1);

  .@{container-prefix}-breadcrumb {
    padding: 0 !important;
  }
}

.page_header_noPadding {
  padding: 16px 0 16px 0px;
  background: @page-container-color;
  box-shadow: inset 0px -1px 0px rgba(229, 229, 229, 1);
}

.page_content {
  margin: 20px 32px;
  background: @page-container-color;
}

.common_icon {
  width: 20px;
  height: 20px;
}

.common_antd_icon {
  svg {
    width: 20px;
    height: 20px;
  }
}

//分页调整
.@{container-prefix}-page {
  padding: 20px 0px 17px 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin: 0 !important;

  .@{container-prefix}-pagination-item,
  .@{container-prefix}-pagination-next,
  .@{container-prefix}-pagination-prev,
  .@{container-prefix}-select-selector {
    border-radius: 6px;
    background: #fff;
    border: 1px solid @page-border-color;
  }

  .@{container-prefix}-pagination-options-quick-jumper {
    input {
      border-radius: 6px;
      background: #fff;
      border: 1px solid @page-border-color;
    }

    input:hover {
      border: 1px solid @border-focus-color !important;
    }
  }

  .@{container-prefix}-pagination-item:hover {
    border: 1px solid @border-focus-color;
    background-color: #fff !important;
  }

  .@{container-prefix}-select:hover {
    .@{container-prefix}-select-selector {
      border: 1px solid @border-focus-color !important;
      background-color: #fff !important;
    }
  }

  .@{container-prefix}-pagination-next:hover,
  .@{container-prefix}-pagination-prev:hover {
    border: 1px solid @border-focus-color;

    button {
      background-color: #fff !important;
    }
  }

  .@{container-prefix}-pagination-item-active {
    background: @button-normal-color !important;
    border: 1px solid @button-normal-color !important;

    a {
      color: #fff;
    }
  }
}
.cluset_popover{
  .pop_modal{
    display: flex;
    flex-direction: column;
  }
}
.config_modal{
  .multi-cluster-website-modal-title{
    font-weight: bold;
    font-size: 20px;
    color: #333;
    margin: 6px 0 10px;
  }
  .config_modal_text{
    font-size: 14px;
    color: #333;
    line-height: 20px;
    margin-bottom: 16px;
  }
  .config_modal_code{
    padding: 16px 26px;
    background: #f7f7f7;
    border-radius: 6px;
    margin-bottom: 16px;
    p{
      font-size: 14px;
      color: #666;
      line-height: 20px;
    }
  }
}

//默认按钮
.primary_btn {
  height: 32px;
  width: 96px;
  background-color: @button-normal-color;
  color: #fff;
  border-radius: 6px;
}

.primary_btn:hover {
  background-color: @button-hover-color !important;
  color: #fff !important;
  box-shadow: none !important;
}

.primary_btn:focus {
  background-color: @button-click-color !important;
  border-color: @button-click-color !important;
  box-shadow: none !important;
}

// 取消按钮
.cancel_btn {
  height: 32px;
  width: 96px;
  border: 1px solid @button-disabled-color;
  color: @title-color;
  border-radius: 6px !important;
}

.cancel_btn:hover {
  border: 1px solid @button-hover-color;
  color: @button-hover-color;
}

.cancel_btn:focus {
  border: 1px solid @button-click-color;
  color: @button-click-color;
}

//面包屑
.breadCrumb_self {
  width: auto;
}

.create_bread {
  padding-bottom: 16px;
  box-shadow: inset 0px -1px 0px rgba(229, 229, 229, 1);
}

.unNormalColor {
  color: #E7434A;
}

.normalColor {
  color: #09AA71;
}

.@{container-prefix}-input-status-error:not(.@{container-prefix}-input-disabled){
  border-color: #ff4d4f !important;
}
//输入框颜色
.@{container-prefix}-input,
.@{container-prefix}-input-search-button {
  border-color: @border-normal-color;
}

.@{container-prefix}-input:focus,
.@{container-prefix}-input:hover,
.@{container-prefix}-input-affix-wrapper:hover {
  border-color: @border-focus-color !important;
}

.@{container-prefix}-input-search-button:hover,
.@{container-prefix}-input-search-button:focus {
  border-color: @border-focus-color !important;
}

.@{container-prefix}-input-search-button:hover {
  svg {
    fill: @border-focus-color !important;
  }
}

//修改全局滚动条
*::-webkit-scrollbar {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 6px;
  border-radius: 6px;
  position: absolute;
  width: 8px;
  top: 0px;
  height: 8px;
  bottom: 0px;
  right: 0px;
  visibility: hidden;
}

*::-webkit-scrollbar-track {
  background-color: #fff;
}

*::-webkit-scrollbar-thumb {
  position: absolute;
  border-radius: 99px !important;
  cursor: pointer;
  user-select: none;
  height: 20px;
  background: rgba(145, 145, 145, 0.8);
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

*::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(145, 145, 145, 0.4);
}

.back_cancel_btn {
  height: 32px;
  width: 96px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccccccff;
  margin-right: 10px;
}

.back_config_btn {
  height: 32px;
  width: 96px;
  font-size: 14px;
  border-radius: 6px;
  background: #356ac4ff;
  color: #fffffF;
  border: 1px solid #356ac4ff;
}

.back_config_btn:hover {
  background: @button-hover-color !important;
  border: 1px solid #4B8BEA !important;
  color: #ffffff !important;
}